import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'node_user_list' })
export class UserEntity{
  @PrimaryColumn('varchar', { name: 'user_id', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
  userId: string;

  @Column({ name: 'username', charset: 'utf8mb4', collation: 'utf8mb4_general_ci' })
  userName: string;

  @Column('int', { name: 'flag' })
  flag: number;

  @Column('int', { name: 'admin' })
  admin: number;

  @Column('int', { name: 'user_type' })
  userType: number;

  @Column('int', { name: 'error_count' })
  errorCount: number;

  @Column('int', { name: 'status' })
  status: number;

}
